home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / modelers / chmsthtc / chmsthtc.lzh / Chemesthetics / Source / Source.LZH / eingabe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-19  |  30.6 KB  |  978 lines

  1. /* $Revision Header *** Header built automatically - do not edit! ***********
  2.  *
  3.  *    (C) Copyright 1991 by Metalworx
  4.  *
  5.  *    Name .....: eingabe.h
  6.  *    Created ..: Sun 06-Oct-91 21:27
  7.  *    Revision .: 2
  8.  *
  9.  *    Date        Author        Comment
  10.  *    =========    ========    ====================
  11.  *    20-Oct-91       Mtwx            Gadget f. Ver÷▀erung vergr÷ssert
  12.  *    19-Oct-91    Mtwx        L÷schen-Gadget eingebaut
  13.  *         1989    Mtwx        Created this file!
  14.  *
  15.  * $Revision Header ********************************************************/
  16.  #define REVISION 2
  17.  
  18. #define LOESCHEN 20
  19.  
  20. extern struct Image BoolImage1;
  21.  
  22. static struct IntuiText LoeschenText =
  23. {
  24. #ifdef GERMAN
  25.   2,0,JAM1,17,3,NULL,(UBYTE *)DELETE_TEXT,NULL
  26. #endif
  27. #ifdef ENGLISH
  28.   2,0,JAM1,21,3,NULL,(UBYTE *)DELETE_TEXT,NULL
  29. #endif
  30. };
  31.  
  32. static struct Gadget LoeschenGadget =
  33. {
  34.   NULL,500,16,90,14,GADGHCOMP|GADGIMAGE,RELVERIFY,BOOLGADGET,
  35.   (APTR)&BoolImage1,NULL,&LoeschenText,NULL,NULL,LOESCHEN,NULL
  36. };
  37.  
  38. #define Add_width 48
  39. #define Add_height 16
  40. #define Add_num_planes 4
  41.  
  42. #ifdef ENGLISH
  43. USHORT __chip Add_data[4][16][3] = {              /* Englisch */
  44.     {
  45.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  46.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  47.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  48.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  49.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  50.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  51.     },
  52.     {
  53.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  54.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  55.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  56.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  57.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  58.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  59.     },
  60.     {
  61.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  62.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  63.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,
  64.     0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  65.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  66.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x0000,0x0000,0x0000
  67.     },
  68.     {
  69.     0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,0xffff,
  70.     0xfffe,0xffff,0xffff,0xfffe,0xfffe,0x7070,0x7ffe,0xfffc,
  71.     0x3939,0x3ffe,0xfffc,0x3999,0x9ffe,0xfff9,0x9999,0x9ffe,
  72.     0xfff8,0x1999,0x9ffe,0xfff3,0xc939,0x3ffe,0xfff3,0xc070,
  73.     0x7ffe,0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,
  74.     0xffff,0xfffe,0xffff,0xffff,0xfffe,0x0000,0x0000,0x0000
  75.     },
  76. };
  77. #endif
  78. #ifdef GERMAN
  79. USHORT __chip Add_data[4][16][3] = {           /* Deutsch */
  80.     {
  81.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  82.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  83.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  84.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  85.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  86.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  87.     },
  88.     {
  89.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  90.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  91.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  92.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  93.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  94.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  95.     },
  96.     {
  97.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  98.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  99.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,
  100.     0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  101.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  102.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x0000,0x0000,0x0000
  103.     },
  104.     {
  105.     0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,0xffff,
  106.     0xfffe,0xffff,0xffff,0xfffe,0xffe7,0x3901,0x99fe,0xffc3,
  107.     0x1999,0xfffe,0xffc3,0x099f,0x99fe,0xff99,0x2187,0x99fe,
  108.     0xff81,0x319f,0x99fe,0xff3c,0x399f,0x99fe,0xff3c,0x390f,
  109.     0xc1fe,0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,
  110.     0xffff,0xfffe,0xffff,0xffff,0xfffe,0x0000,0x0000,0x0000
  111.     },
  112. };
  113. #endif
  114. struct Image NeuImage2 =
  115. {
  116.   0,0,Add_width,Add_height,Add_num_planes,(USHORT *)Add_data,0xF,0,NULL
  117. };
  118.  
  119. #define Edit_width 48
  120. #define Edit_height 16
  121. #define Edit_num_planes 4
  122.  
  123. USHORT __chip Edit_data[4][16][3] = {
  124.     {
  125.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  126.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  127.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  128.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  129.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  130.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  131.     },
  132.     {
  133.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  134.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  135.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  136.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  137.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  138.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  139.     },
  140.     {
  141.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  142.     0x0000,0x0000,0x0000,0x0000,0x00fe,0xf87e,0x7e00,0x0066,
  143.     0x6c18,0x5a00,0x0060,0x6618,0x1800,0x0078,0x6618,0x1800,
  144.     0x0060,0x6618,0x1800,0x0066,0x6c18,0x1800,0x00fe,0xf87e,
  145.     0x3c00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  146.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
  147.     },
  148.     {
  149.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xffff,0x7fff,0xffff,
  150.     0xffff,0x7fff,0xffff,0xffff,0x7f01,0x0781,0x81ff,0x7f99,
  151.     0x93e7,0xa5ff,0x7f9f,0x99e7,0xe7ff,0x7f87,0x99e7,0xe7ff,
  152.     0x7f9f,0x99e7,0xe7ff,0x7f99,0x93e7,0xe7ff,0x7f01,0x0781,
  153.     0xc3ff,0x7fff,0xffff,0xffff,0x7fff,0xffff,0xffff,0x7fff,
  154.     0xffff,0xffff,0x7fff,0xffff,0xffff,0x7fff,0xffff,0xffff
  155.     },
  156. };
  157.  
  158. struct Image NeuImage1 =
  159. {
  160.   0,0,Edit_width,Edit_height,Edit_num_planes,(USHORT *)Edit_data,0xF,0,NULL
  161. };
  162.  
  163. struct Gadget Neu = {
  164.     &LoeschenGadget,   /* next gadget */
  165.     530,130,    /* origin XY of hit box relative to window TopLeft */
  166.     48,16,    /* hit box width and height */
  167.     GADGIMAGE|GADGHIMAGE,    /* gadget flags */
  168.     RELVERIFY|TOGGLESELECT,      /* activation flags */
  169.     BOOLGADGET,    /* gadget type flags */
  170.     (APTR)&NeuImage1, /* gadget border or image to be rendered */
  171.     (APTR)&NeuImage2,   /* alternate imagery for selection */
  172.     NULL,         /* first IntuiText structure */
  173.     NULL,    /* gadget mutual-exclude long word */
  174.     NULL,    /* SpecialInfo structure */
  175.     19,    /* user-definable data */
  176.     NULL    /* pointer to user-definable data */
  177. };
  178.  
  179. SHORT BorderVectors1[] = {
  180.     0,0,
  181.     91,0,
  182.     91,17,
  183.     0,17,
  184.     0,0
  185. };
  186. struct Border Border1 = {
  187.     -1,-1,    /* XY origin relative to container TopLeft */
  188.     3,0,JAM1,    /* front pen, back pen and drawmode */
  189.     5,    /* number of XY vectors */
  190.     BorderVectors1, /* pointer to XY vectors */
  191.     NULL    /* next border in list */
  192. };
  193.  
  194. struct IntuiText AbbruchText = {
  195.     1,0,JAM1,    /* front and back text pens, drawmode and fill byte */
  196.     CANCEL_XPOS,4,     /* XY origin relative to container TopLeft */
  197.     NULL,    /* font pointer or NULL for default */
  198.     (UBYTE *)CANCEL_TEXT,     /* pointer to text */
  199.     NULL    /* next IntuiText structure */
  200. };
  201.  
  202. struct Gadget Abbruch = {
  203.     &Neu,    /* next gadget */
  204.     530,181,    /* origin XY of hit box relative to window TopLeft */
  205.     90,16,    /* hit box width and height */
  206.     NULL,    /* gadget flags */
  207.     RELVERIFY,    /* activation flags */
  208.     BOOLGADGET,    /* gadget type flags */
  209.     (APTR)&Border1, /* gadget border or image to be rendered */
  210.     NULL,    /* alternate imagery for selection */
  211.     &AbbruchText,         /* first IntuiText structure */
  212.     NULL,    /* gadget mutual-exclude long word */
  213.     NULL,    /* SpecialInfo structure */
  214.     18,    /* user-definable data */
  215.     NULL    /* pointer to user-definable data */
  216. };
  217.  
  218. extern struct Border OKBorder;
  219. extern struct IntuiText OKText;
  220.  
  221. struct Gadget OK = {
  222.     &Abbruch,    /* next gadget */
  223.     530,162,    /* origin XY of hit box relative to window TopLeft */
  224.     90,16,    /* hit box width and height */
  225.     NULL,    /* gadget flags */
  226.     RELVERIFY,    /* activation flags */
  227.     BOOLGADGET,    /* gadget type flags */
  228.     (APTR)&OKBorder, /* gadget border or image to be rendered */
  229.     NULL,    /* alternate imagery for selection */
  230.     &OKText,    /* first IntuiText structure */
  231.     NULL,    /* gadget mutual-exclude long word */
  232.     NULL,    /* SpecialInfo structure */
  233.     17,    /* user-definable data */
  234.     NULL    /* pointer to user-definable data */
  235. };
  236.  
  237. UBYTE RadiusSIBuff[4];
  238. struct StringInfo RadiusSInfo = {
  239.     RadiusSIBuff,    /* buffer where text will be edited */
  240.     NULL,    /* optional undo buffer */
  241.     0,    /* character position in buffer */
  242.     4,    /* maximum number of characters to allow */
  243.     0,    /* first displayed character buffer position */
  244.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  245.     0,    /* Rastport of gadget */
  246.     0,    /* initial value for integer gadgets */
  247.     NULL    /* alternate keymap (fill in if you set the flag) */
  248. };
  249.  
  250. SHORT BorderVectors3[] = {
  251.     0,0,
  252.     33,0,
  253.     33,9,
  254.     0,9,
  255.     0,0
  256. };
  257. struct Border Border3 = {
  258.     -1,-1,    /* XY origin relative to container TopLeft */
  259.     3,0,JAM1,    /* front pen, back pen and drawmode */
  260.     5,    /* number of XY vectors */
  261.     BorderVectors3, /* pointer to XY vectors */
  262.     NULL    /* next border in list */
  263. };
  264.  
  265. struct Gadget Radius = {
  266.     &OK,    /* next gadget */
  267.     450,130,    /* origin XY of hit box relative to window TopLeft */
  268.     32,8,    /* hit box width and height */
  269.     NULL,    /* gadget flags */
  270.     RELVERIFY|LONGINT,    /* activation flags */
  271.     STRGADGET,    /* gadget type flags */
  272.     (APTR)&Border3, /* gadget border or image to be rendered */
  273.     NULL,    /* alternate imagery for selection */
  274.     NULL,    /* first IntuiText structure */
  275.     NULL,    /* gadget mutual-exclude long word */
  276.     (APTR)&RadiusSInfo,     /* SpecialInfo structure */
  277.     16,    /* user-definable data */
  278.     NULL    /* pointer to user-definable data */
  279. };
  280.  
  281. UBYTE PosZSIBuff[6];
  282. struct StringInfo PosZSInfo = {
  283.     PosZSIBuff,    /* buffer where text will be edited */
  284.     NULL,    /* optional undo buffer */
  285.     0,    /* character position in buffer */
  286.     6,    /* maximum number of characters to allow */
  287.     0,    /* first displayed character buffer position */
  288.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  289.     0,    /* Rastport of gadget */
  290.     0,    /* initial value for integer gadgets */
  291.     NULL    /* alternate keymap (fill in if you set the flag) */
  292. };
  293.  
  294. SHORT BorderVectors4[] = {
  295.     0,0,
  296.     49,0,
  297.     49,9,
  298.     0,9,
  299.     0,0
  300. };
  301. struct Border Border4 = {
  302.     -1,-1,    /* XY origin relative to container TopLeft */
  303.     3,0,JAM1,    /* front pen, back pen and drawmode */
  304.     5,    /* number of XY vectors */
  305.     BorderVectors4, /* pointer to XY vectors */
  306.     NULL    /* next border in list */
  307. };
  308.  
  309. struct Gadget PosZ = {
  310.     &Radius,    /* next gadget */
  311.     384,130,    /* origin XY of hit box relative to window TopLeft */
  312.     48,8,    /* hit box width and height */
  313.     NULL,    /* gadget flags */
  314.     RELVERIFY|LONGINT,    /* activation flags */
  315.     STRGADGET,    /* gadget type flags */
  316.     (APTR)&Border4, /* gadget border or image to be rendered */
  317.     NULL,    /* alternate imagery for selection */
  318.     NULL,    /* first IntuiText structure */
  319.     NULL,    /* gadget mutual-exclude long word */
  320.     (APTR)&PosZSInfo,       /* SpecialInfo structure */
  321.     15,    /* user-definable data */
  322.     NULL    /* pointer to user-definable data */
  323. };
  324.  
  325. UBYTE PosYSIBuff[6];
  326. struct StringInfo PosYSInfo = {
  327.     PosYSIBuff,    /* buffer where text will be edited */
  328.     NULL,    /* optional undo buffer */
  329.     0,    /* character position in buffer */
  330.     6,    /* maximum number of characters to allow */
  331.     0,    /* first displayed character buffer position */
  332.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  333.     0,    /* Rastport of gadget */
  334.     0,    /* initial value for integer gadgets */
  335.     NULL    /* alternate keymap (fill in if you set the flag) */
  336. };
  337.  
  338. SHORT BorderVectors5[] = {
  339.     0,0,
  340.     49,0,
  341.     49,9,
  342.     0,9,
  343.     0,0
  344. };
  345. struct Border Border5 = {
  346.     -1,-1,    /* XY origin relative to container TopLeft */
  347.     3,0,JAM1,    /* front pen, back pen and drawmode */
  348.     5,    /* number of XY vectors */
  349.     BorderVectors5, /* pointer to XY vectors */
  350.     NULL    /* next border in list */
  351. };
  352.  
  353. struct Gadget PosY = {
  354.     &PosZ,    /* next gadget */
  355.     328,130,    /* origin XY of hit box relative to window TopLeft */
  356.     48,8,    /* hit box width and height */
  357.     NULL,    /* gadget flags */
  358.     RELVERIFY|LONGINT,    /* activation flags */
  359.     STRGADGET,    /* gadget type flags */
  360.     (APTR)&Border5, /* gadget border or image to be rendered */
  361.     NULL,    /* alternate imagery for selection */
  362.     NULL,    /* first IntuiText structure */
  363.     NULL,    /* gadget mutual-exclude long word */
  364.     (APTR)&PosYSInfo,       /* SpecialInfo structure */
  365.     14,    /* user-definable data */
  366.     NULL    /* pointer to user-definable data */
  367. };
  368.  
  369. UBYTE PosXSIBuff[6];
  370. struct StringInfo PosXSInfo = {
  371.     PosXSIBuff,    /* buffer where text will be edited */
  372.     NULL,    /* optional undo buffer */
  373.     0,    /* character position in buffer */
  374.     6,    /* maximum number of characters to allow */
  375.     0,    /* first displayed character buffer position */
  376.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  377.     0,    /* Rastport of gadget */
  378.     0,    /* initial value for integer gadgets */
  379.     NULL    /* alternate keymap (fill in if you set the flag) */
  380. };
  381.  
  382. SHORT BorderVectors6[] = {
  383.     0,0,
  384.     49,0,
  385.     49,9,
  386.     0,9,
  387.     0,0
  388. };
  389. struct Border Border6 = {
  390.     -1,-1,    /* XY origin relative to container TopLeft */
  391.     3,0,JAM1,    /* front pen, back pen and drawmode */
  392.     5,    /* number of XY vectors */
  393.     BorderVectors6, /* pointer to XY vectors */
  394.     NULL    /* next border in list */
  395. };
  396.  
  397. struct Gadget PosX = {
  398.     &PosY,    /* next gadget */
  399.     272,130,    /* origin XY of hit box relative to window TopLeft */
  400.     48,8,    /* hit box width and height */
  401.     NULL,    /* gadget flags */
  402.     RELVERIFY|LONGINT,    /* activation flags */
  403.     STRGADGET,    /* gadget type flags */
  404.     (APTR)&Border6, /* gadget border or image to be rendered */
  405.     NULL,    /* alternate imagery for selection */
  406.     NULL,    /* first IntuiText structure */
  407.     NULL,    /* gadget mutual-exclude long word */
  408.     (APTR)&PosXSInfo,       /* SpecialInfo structure */
  409.     13,    /* user-definable data */
  410.     NULL    /* pointer to user-definable data */
  411. };
  412.  
  413. UBYTE AtomSIBuff[4];
  414. struct StringInfo AtomSInfo = {
  415.     AtomSIBuff,    /* buffer where text will be edited */
  416.     NULL,    /* optional undo buffer */
  417.     0,    /* character position in buffer */
  418.     4,    /* maximum number of characters to allow */
  419.     0,    /* first displayed character buffer position */
  420.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  421.     0,    /* Rastport of gadget */
  422.     0,    /* initial value for integer gadgets */
  423.     NULL    /* alternate keymap (fill in if you set the flag) */
  424. };
  425.  
  426. SHORT BorderVectors7[] = {
  427.     0,0,
  428.     25,0,
  429.     25,9,
  430.     0,9,
  431.     0,0
  432. };
  433. struct Border Border7 = {
  434.     -1,-1,    /* XY origin relative to container TopLeft */
  435.     3,0,JAM1,    /* front pen, back pen and drawmode */
  436.     5,    /* number of XY vectors */
  437.     BorderVectors7, /* pointer to XY vectors */
  438.     NULL    /* next border in list */
  439. };
  440.  
  441. struct Gadget Atom = {
  442.     &PosX,    /* next gadget */
  443.     64,130, /* origin XY of hit box relative to window TopLeft */
  444.     24,8,    /* hit box width and height */
  445.     NULL,    /* gadget flags */
  446.     RELVERIFY,    /* activation flags */
  447.     STRGADGET,    /* gadget type flags */
  448.     (APTR)&Border7, /* gadget border or image to be rendered */
  449.     NULL,    /* alternate imagery for selection */
  450.     NULL,    /* first IntuiText structure */
  451.     NULL,    /* gadget mutual-exclude long word */
  452.     (APTR)&AtomSInfo,       /* SpecialInfo structure */
  453.     12,    /* user-definable data */
  454.     NULL    /* pointer to user-definable data */
  455. };
  456.  
  457. UBYTE ReflexSIBuff[4];
  458. struct StringInfo ReflexSInfo = {
  459.     ReflexSIBuff,    /* buffer where text will be edited */
  460.     NULL,    /* optional undo buffer */
  461.     0,    /* character position in buffer */
  462.     4,    /* maximum number of characters to allow */
  463.     0,    /* first displayed character buffer position */
  464.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  465.     0,    /* Rastport of gadget */
  466.     0,    /* initial value for integer gadgets */
  467.     NULL    /* alternate keymap (fill in if you set the flag) */
  468. };
  469.  
  470. SHORT BorderVectors8[] = {
  471.     0,0,
  472.     33,0,
  473.     33,9,
  474.     0,9,
  475.     0,0
  476. };
  477. struct Border Border8 = {
  478.     -1,-1,    /* XY origin relative to container TopLeft */
  479.     3,0,JAM1,    /* front pen, back pen and drawmode */
  480.     5,    /* number of XY vectors */
  481.     BorderVectors8, /* pointer to XY vectors */
  482.     NULL    /* next border in list */
  483. };
  484.  
  485. struct Gadget Reflex = {
  486.     &Atom,    /* next gadget */
  487.     474,162,    /* origin XY of hit box relative to window TopLeft */
  488.     32,8,    /* hit box width and height */
  489.     NULL,    /* gadget flags */
  490.     RELVERIFY|LONGINT,    /* activation flags */
  491.     STRGADGET,    /* gadget type flags */
  492.     (APTR)&Border8, /* gadget border or image to be rendered */
  493.     NULL,    /* alternate imagery for selection */
  494.     NULL,    /* first IntuiText structure */
  495.     NULL,    /* gadget mutual-exclude long word */
  496.     (APTR)&ReflexSInfo,     /* SpecialInfo structure */
  497.     11,    /* user-definable data */
  498.     NULL    /* pointer to user-definable data */
  499. };
  500.  
  501. UBYTE LichtZSIBuff[8];
  502. struct StringInfo LichtZSInfo = {
  503.     LichtZSIBuff,    /* buffer where text will be edited */
  504.     NULL,    /* optional undo buffer */
  505.     0,    /* character position in buffer */
  506.     8,    /* maximum number of characters to allow */
  507.     0,    /* first displayed character buffer position */
  508.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  509.     0,    /* Rastport of gadget */
  510.     0,    /* initial value for integer gadgets */
  511.     NULL    /* alternate keymap (fill in if you set the flag) */
  512. };
  513.  
  514. SHORT BorderVectors9[] = {
  515.     0,0,
  516.     65,0,
  517.     65,9,
  518.     0,9,
  519.     0,0
  520. };
  521. struct Border Border9 = {
  522.     -1,-1,    /* XY origin relative to container TopLeft */
  523.     3,0,JAM1,    /* front pen, back pen and drawmode */
  524.     5,    /* number of XY vectors */
  525.     BorderVectors9, /* pointer to XY vectors */
  526.     NULL    /* next border in list */
  527. };
  528.  
  529. struct IntuiText LichtZText = {
  530.     15,0,JAM2,     /* front and back text pens, drawmode and fill byte */
  531.     -52,0,    /* XY origin relative to container TopLeft */
  532.     NULL,    /* font pointer or NULL for default */
  533.     (UBYTE *)"-> Z:",      /* pointer to text */
  534.     NULL    /* next IntuiText structure */
  535. };
  536.  
  537. struct Gadget LichtZ = {
  538.     &Reflex,    /* next gadget */
  539.     301,186,    /* origin XY of hit box relative to window TopLeft */
  540.     64,8,    /* hit box width and height */
  541.     NULL,    /* gadget flags */
  542.     RELVERIFY,    /* activation flags */
  543.     STRGADGET,    /* gadget type flags */
  544.     (APTR)&Border9, /* gadget border or image to be rendered */
  545.     NULL,    /* alternate imagery for selection */
  546.     &LichtZText,        /* first IntuiText structure */
  547.     NULL,    /* gadget mutual-exclude long word */
  548.     (APTR)&LichtZSInfo,     /* SpecialInfo structure */
  549.     10,    /* user-definable data */
  550.     NULL    /* pointer to user-definable data */
  551. };
  552.  
  553. UBYTE LichtYSIBuff[8];
  554. struct StringInfo LichtYSInfo = {
  555.     LichtYSIBuff,    /* buffer where text will be edited */
  556.     NULL,    /* optional undo buffer */
  557.     0,    /* character position in buffer */
  558.     8,    /* maximum number of characters to allow */
  559.     0,    /* first displayed character buffer position */
  560.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  561.     0,    /* Rastport of gadget */
  562.     0,    /* initial value for integer gadgets */
  563.     NULL    /* alternate keymap (fill in if you set the flag) */
  564. };
  565.  
  566. SHORT BorderVectors10[] = {
  567.     0,0,
  568.     65,0,
  569.     65,9,
  570.     0,9,
  571.     0,0
  572. };
  573. struct Border Border10 = {
  574.     -1,-1,    /* XY origin relative to container TopLeft */
  575.     3,0,JAM1,    /* front pen, back pen and drawmode */
  576.     5,    /* number of XY vectors */
  577.     BorderVectors10,    /* pointer to XY vectors */
  578.     NULL    /* next border in list */
  579. };
  580.  
  581. struct IntuiText LichtYText = {
  582.     15,0,JAM2,     /* front and back text pens, drawmode and fill byte */
  583.     -52,0,    /* XY origin relative to container TopLeft */
  584.     NULL,    /* font pointer or NULL for default */
  585.     (UBYTE *)"-> Y:",      /* pointer to text */
  586.     NULL    /* next IntuiText structure */
  587. };
  588.  
  589. struct Gadget LichtY = {
  590.     &LichtZ,    /* next gadget */
  591.     301,174,    /* origin XY of hit box relative to window TopLeft */
  592.     64,8,    /* hit box width and height */
  593.     NULL,    /* gadget flags */
  594.     RELVERIFY,    /* activation flags */
  595.     STRGADGET,    /* gadget type flags */
  596.     (APTR)&Border10,        /* gadget border or image to be rendered */
  597.     NULL,    /* alternate imagery for selection */
  598.     &LichtYText,        /* first IntuiText structure */
  599.     NULL,    /* gadget mutual-exclude long word */
  600.     (APTR)&LichtYSInfo,     /* SpecialInfo structure */
  601.     9,    /* user-definable data */
  602.     NULL    /* pointer to user-definable data */
  603. };
  604.  
  605. UBYTE LichtXSIBuff[8];
  606. struct StringInfo LichtXSInfo = {
  607.     LichtXSIBuff,    /* buffer where text will be edited */
  608.     NULL,    /* optional undo buffer */
  609.     0,    /* character position in buffer */
  610.     8,    /* maximum number of characters to allow */
  611.     0,    /* first displayed character buffer position */
  612.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  613.     0,    /* Rastport of gadget */
  614.     0,    /* initial value for integer gadgets */
  615.     NULL    /* alternate keymap (fill in if you set the flag) */
  616. };
  617.  
  618. SHORT BorderVectors11[] = {
  619.     0,0,
  620.     65,0,
  621.     65,9,
  622.     0,9,
  623.     0,0
  624. };
  625. struct Border Border11 = {
  626.     -1,-1,    /* XY origin relative to container TopLeft */
  627.     3,0,JAM1,    /* front pen, back pen and drawmode */
  628.     5,    /* number of XY vectors */
  629.     BorderVectors11,    /* pointer to XY vectors */
  630.     NULL    /* next border in list */
  631. };
  632.  
  633. struct IntuiText LichtXText = {
  634.     15,0,JAM2,     /* front and back text pens, drawmode and fill byte */
  635.     -52,0,    /* XY origin relative to container TopLeft */
  636.     NULL,    /* font pointer or NULL for default */
  637.     (UBYTE *)"-> X:",      /* pointer to text */
  638.     NULL    /* next IntuiText structure */
  639. };
  640.  
  641. struct Gadget LichtX = {
  642.     &LichtY,    /* next gadget */
  643.     301,162,    /* origin XY of hit box relative to window TopLeft */
  644.     64,8,    /* hit box width and height */
  645.     NULL,    /* gadget flags */
  646.     RELVERIFY,    /* activation flags */
  647.     STRGADGET,    /* gadget type flags */
  648.     (APTR)&Border11,        /* gadget border or image to be rendered */
  649.     NULL,    /* alternate imagery for selection */
  650.     &LichtXText,        /* first IntuiText structure */
  651.     NULL,    /* gadget mutual-exclude long word */
  652.     (APTR)&LichtXSInfo,     /* SpecialInfo structure */
  653.     8,    /* user-definable data */
  654.     NULL    /* pointer to user-definable data */
  655. };
  656.  
  657. UBYTE DrehZSIBuff[4];
  658. struct StringInfo DrehZSInfo = {
  659.     DrehZSIBuff,    /* buffer where text will be edited */
  660.     NULL,    /* optional undo buffer */
  661.     0,    /* character position in buffer */
  662.     4,    /* maximum number of characters to allow */
  663.     0,    /* first displayed character buffer position */
  664.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  665.     0,    /* Rastport of gadget */
  666.     0,    /* initial value for integer gadgets */
  667.     NULL    /* alternate keymap (fill in if you set the flag) */
  668. };
  669.  
  670. SHORT BorderVectors12[] = {
  671.     0,0,
  672.     33,0,
  673.     33,9,
  674.     0,9,
  675.     0,0
  676. };
  677. struct Border Border12 = {
  678.     -1,-1,    /* XY origin relative to container TopLeft */
  679.     3,0,JAM1,    /* front pen, back pen and drawmode */
  680.     5,    /* number of XY vectors */
  681.     BorderVectors12,    /* pointer to XY vectors */
  682.     NULL    /* next border in list */
  683. };
  684.  
  685. struct IntuiText DrehZText = {
  686.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  687.     -25,0,    /* XY origin relative to container TopLeft */
  688.     NULL,    /* font pointer or NULL for default */
  689.     (UBYTE *)"Z:",  /* pointer to text */
  690.     NULL    /* next IntuiText structure */
  691. };
  692.  
  693. struct Gadget DrehZ = {
  694.     &LichtX,    /* next gadget */
  695.     129,186,    /* origin XY of hit box relative to window TopLeft */
  696.     32,8,    /* hit box width and height */
  697.     NULL,    /* gadget flags */
  698.     RELVERIFY|LONGINT,    /* activation flags */
  699.     STRGADGET,    /* gadget type flags */
  700.     (APTR)&Border12,        /* gadget border or image to be rendered */
  701.     NULL,    /* alternate imagery for selection */
  702.     &DrehZText,       /* first IntuiText structure */
  703.     NULL,    /* gadget mutual-exclude long word */
  704.     (APTR)&DrehZSInfo,      /* SpecialInfo structure */
  705.     7,    /* user-definable data */
  706.     NULL    /* pointer to user-definable data */
  707. };
  708.  
  709. UBYTE DrehYSIBuff[4];
  710. struct StringInfo DrehYSInfo = {
  711.     DrehYSIBuff,    /* buffer where text will be edited */
  712.     NULL,    /* optional undo buffer */
  713.     0,    /* character position in buffer */
  714.     4,    /* maximum number of characters to allow */
  715.     0,    /* first displayed character buffer position */
  716.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  717.     0,    /* Rastport of gadget */
  718.     0,    /* initial value for integer gadgets */
  719.     NULL    /* alternate keymap (fill in if you set the flag) */
  720. };
  721.  
  722. SHORT BorderVectors13[] = {
  723.     0,0,
  724.     33,0,
  725.     33,9,
  726.     0,9,
  727.     0,0
  728. };
  729. struct Border Border13 = {
  730.     -1,-1,    /* XY origin relative to container TopLeft */
  731.     3,0,JAM1,    /* front pen, back pen and drawmode */
  732.     5,    /* number of XY vectors */
  733.     BorderVectors13,    /* pointer to XY vectors */
  734.     NULL    /* next border in list */
  735. };
  736.  
  737. struct IntuiText DrehYText = {
  738.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  739.     -25,0,    /* XY origin relative to container TopLeft */
  740.     NULL,    /* font pointer or NULL for default */
  741.     (UBYTE *)"Y:",  /* pointer to text */
  742.     NULL    /* next IntuiText structure */
  743. };
  744.  
  745. struct Gadget DrehY = {
  746.     &DrehZ, /* next gadget */
  747.     129,174,    /* origin XY of hit box relative to window TopLeft */
  748.     32,8,    /* hit box width and height */
  749.     NULL,    /* gadget flags */
  750.     RELVERIFY|LONGINT,    /* activation flags */
  751.     STRGADGET,    /* gadget type flags */
  752.     (APTR)&Border13,        /* gadget border or image to be rendered */
  753.     NULL,    /* alternate imagery for selection */
  754.     &DrehYText,       /* first IntuiText structure */
  755.     NULL,    /* gadget mutual-exclude long word */
  756.     (APTR)&DrehYSInfo,      /* SpecialInfo structure */
  757.     6,    /* user-definable data */
  758.     NULL    /* pointer to user-definable data */
  759. };
  760.  
  761. UBYTE DrehXSIBuff[4];
  762. struct StringInfo DrehXSInfo = {
  763.     DrehXSIBuff,    /* buffer where text will be edited */
  764.     NULL,    /* optional undo buffer */
  765.     0,    /* character position in buffer */
  766.     4,    /* maximum number of characters to allow */
  767.     0,    /* first displayed character buffer position */
  768.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  769.     0,    /* Rastport of gadget */
  770.     0,    /* initial value for integer gadgets */
  771.     NULL    /* alternate keymap (fill in if you set the flag) */
  772. };
  773.  
  774. SHORT BorderVectors14[] = {
  775.     0,0,
  776.     33,0,
  777.     33,9,
  778.     0,9,
  779.     0,0
  780. };
  781. struct Border Border14 = {
  782.     -1,-1,    /* XY origin relative to container TopLeft */
  783.     3,0,JAM1,    /* front pen, back pen and drawmode */
  784.     5,    /* number of XY vectors */
  785.     BorderVectors14,    /* pointer to XY vectors */
  786.     NULL    /* next border in list */
  787. };
  788.  
  789. struct IntuiText DrehXText = {
  790.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  791.     -25,0,    /* XY origin relative to container TopLeft */
  792.     NULL,    /* font pointer or NULL for default */
  793.     (UBYTE *)"X:",  /* pointer to text */
  794.     NULL    /* next IntuiText structure */
  795. };
  796.  
  797. struct Gadget DrehX = {
  798.     &DrehY, /* next gadget */
  799.     129,162,    /* origin XY of hit box relative to window TopLeft */
  800.     32,8,    /* hit box width and height */
  801.     NULL,    /* gadget flags */
  802.     RELVERIFY|LONGINT,    /* activation flags */
  803.     STRGADGET,    /* gadget type flags */
  804.     (APTR)&Border14,        /* gadget border or image to be rendered */
  805.     NULL,    /* alternate imagery for selection */
  806.     &DrehXText,       /* first IntuiText structure */
  807.     NULL,    /* gadget mutual-exclude long word */
  808.     (APTR)&DrehXSInfo,      /* SpecialInfo structure */
  809.     5,    /* user-definable data */
  810.     NULL    /* pointer to user-definable data */
  811. };
  812.  
  813. UBYTE VergrSIBuff[5];
  814. struct StringInfo VergrSInfo = {
  815.     VergrSIBuff,    /* buffer where text will be edited */
  816.     NULL,    /* optional undo buffer */
  817.     0,    /* character position in buffer */
  818.     5,    /* maximum number of characters to allow */
  819.     0,    /* first displayed character buffer position */
  820.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  821.     0,    /* Rastport of gadget */
  822.     0,    /* initial value for integer gadgets */
  823.     NULL    /* alternate keymap (fill in if you set the flag) */
  824. };
  825.  
  826. SHORT BorderVectors15[] = {
  827.     0,0,
  828.     41,0,
  829.     41,9,
  830.     0,9,
  831.     0,0
  832. };
  833. struct Border Border15 = {
  834.     -1,-1,    /* XY origin relative to container TopLeft */
  835.     3,0,JAM1,    /* front pen, back pen and drawmode */
  836.     5,    /* number of XY vectors */
  837.     BorderVectors15,    /* pointer to XY vectors */
  838.     NULL    /* next border in list */
  839. };
  840.  
  841. struct Gadget Vergr = {
  842.     &DrehX, /* next gadget */
  843.     15,162, /* origin XY of hit box relative to window TopLeft */
  844.     40,8,    /* hit box width and height */
  845.     NULL,    /* gadget flags */
  846.     RELVERIFY,    /* activation flags */
  847.     STRGADGET,    /* gadget type flags */
  848.     (APTR)&Border15,        /* gadget border or image to be rendered */
  849.     NULL,    /* alternate imagery for selection */
  850.     NULL,    /* first IntuiText structure */
  851.     NULL,    /* gadget mutual-exclude long word */
  852.     (APTR)&VergrSInfo,      /* SpecialInfo structure */
  853.     4,    /* user-definable data */
  854.     NULL    /* pointer to user-definable data */
  855. };
  856.  
  857. USHORT __chip Dn_data[4][8][1] = {
  858.     {
  859.     0x0000,0x03e0,0x03e0,0x03e0,0x1ffc,0x07f0,0x01c0,0x0000
  860.     },
  861.     {
  862.     0x0000,0x0020,0x0020,0x0020,0x0004,0x0010,0x0040,0x0000
  863.     },
  864.     {
  865.     0x0000,0x7fde,0x7fde,0x7fde,0x7ffa,0x7fee,0x7fbe,0x0000
  866.     },
  867.     {
  868.     0xffff,0x8021,0x8021,0x8021,0x8005,0x8011,0x8041,0xffff
  869.     },
  870. };
  871.  
  872. struct Image DnImage =
  873. {
  874.   0,0,16,8,4,(USHORT *)Dn_data,0xF,0,NULL
  875. };
  876.  
  877. struct Gadget Down = {
  878.     &Vergr, /* next gadget */
  879.     617,119,    /* origin XY of hit box relative to window TopLeft */
  880.     16,8,    /* hit box width and height */
  881.     GADGIMAGE|GADGHCOMP,   /* gadget flags */
  882.     RELVERIFY,    /* activation flags */
  883.     BOOLGADGET,    /* gadget type flags */
  884.     (APTR)&DnImage,        /* gadget border or image to be rendered */
  885.     NULL,    /* alternate imagery for selection */
  886.     NULL,    /* first IntuiText structure */
  887.     NULL,    /* gadget mutual-exclude long word */
  888.     NULL,    /* SpecialInfo structure */
  889.     3,    /* user-definable data */
  890.     NULL    /* pointer to user-definable data */
  891. };
  892.  
  893. USHORT __chip Up_data[4][8][1] = {
  894.     {
  895.     0x0000,0x01c0,0x07f0,0x1ffc,0x03e0,0x03e0,0x03e0,0x0000
  896.     },
  897.     {
  898.     0x0000,0x0040,0x0010,0x0004,0x0020,0x0020,0x0020,0x0000
  899.     },
  900.     {
  901.     0x0000,0x7fbe,0x7fee,0x7ffa,0x7fde,0x7fde,0x7fde,0x0000
  902.     },
  903.     {
  904.     0xffff,0x8041,0x8011,0x8005,0x8021,0x8021,0x8021,0xffff
  905.     },
  906. };
  907.  
  908. struct Image UpImage =
  909. {
  910.   0,0,16,8,4,(USHORT *)Up_data,0xF,0,NULL
  911. };
  912.  
  913. struct Gadget Up = {
  914.     &Down,    /* next gadget */
  915.     618,29, /* origin XY of hit box relative to window TopLeft */
  916.     16,8,    /* hit box width and height */
  917.     GADGIMAGE|GADGHCOMP,   /* gadget flags */
  918.     RELVERIFY,    /* activation flags */
  919.     BOOLGADGET,    /* gadget type flags */
  920.     (APTR)&UpImage,        /* gadget border or image to be rendered */
  921.     NULL,    /* alternate imagery for selection */
  922.     NULL,    /* first IntuiText structure */
  923.     NULL,    /* gadget mutual-exclude long word */
  924.     NULL,    /* SpecialInfo structure */
  925.     2,    /* user-definable data */
  926.     NULL    /* pointer to user-definable data */
  927. };
  928.  
  929. struct PropInfo PropSInfo = {
  930.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  931.     -1,-1,    /* horizontal and vertical pot values */
  932.     -1,-1,    /* horizontal and vertical body values */
  933. };
  934.  
  935. struct Image Image1 = {
  936.     0,0,    /* XY origin relative to container TopLeft */
  937.     8,76,    /* Image width and height in pixels */
  938.     0,    /* number of bitplanes in Image */
  939.     NULL,    /* pointer to ImageData */
  940.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  941.     NULL    /* next Image structure */
  942. };
  943.  
  944. struct Gadget Prop = {
  945.     &Up,    /* next gadget */
  946.     618,38, /* origin XY of hit box relative to window TopLeft */
  947.     16,80,    /* hit box width and height */
  948.     NULL,    /* gadget flags */
  949.     RELVERIFY,    /* activation flags */
  950.     PROPGADGET,    /* gadget type flags */
  951.     (APTR)&Image1,  /* gadget border or image to be rendered */
  952.     NULL,    /* alternate imagery for selection */
  953.     NULL,    /* first IntuiText structure */
  954.     NULL,    /* gadget mutual-exclude long word */
  955.     (APTR)&PropSInfo,       /* SpecialInfo structure */
  956.     1,    /* user-definable data */
  957.     NULL    /* pointer to user-definable data */
  958. };
  959.  
  960. struct NewWindow EingabeFenster = {
  961.     0,0,    /* window XY origin relative to TopLeft of screen */
  962.     640,200,    /* window width and height */
  963.     0,1,    /* detail and block pens */
  964.     GADGETUP+CLOSEWINDOW+MOUSEBUTTONS,   /* IDCMP flags */
  965.     WINDOWDRAG+WINDOWCLOSE+ACTIVATE,    /* other window flags */
  966.     &Prop,    /* first gadget in gadget list */
  967.     NULL,    /* custom CHECKMARK imagery */
  968.     (UBYTE *)ENTER_DATA,        /* window title */
  969.     NULL,    /* custom screen pointer */
  970.     NULL,    /* custom bitmap */
  971.     5,5,    /* minimum width and height */
  972.     -1,-1,    /* maximum width and height */
  973.     CUSTOMSCREEN    /* destination screen type */
  974. };
  975.  
  976.  
  977. /* end of PowerWindows source generation */
  978.